import Vue from 'vue'
import Router from 'vue-router'
import Home from "../../src/components/Home";
import login from "../components/login";
import Register from "../components/Register";
import Course from "../components/Course";

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },{
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/user/login',
      name: 'home',
      component: login
    },
      {
  path: '/user/register',
      component: Register
    },
    {
  path: '/course',
      component: Course
    },
  ]
})
